﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Hubs;

namespace OA.Mvc.Chats
{
    [HubName("hubchat")]
    public class ChatHub : Hub
    {
        // 供客户端调用
        public void SendMsg(string msg,string userName)
        {
            // 调用客户端的hello方法
            Clients.All.hello(userName+":"+msg);
        }        
    }
}